home *** CD-ROM | disk | FTP | other *** search
- ; $VER: hotlist.module_Install 1.1 (18.10.96)
- ; Installer script by Leo Davidson.
-
- ;*****************************************************************************
-
- ;- Welcome -------------------------------------------------------------------
-
- (welcome "hotlist.module")
-
- ;- Introductory message ------------------------------------------------------
-
- (message "This installer will install hotlist.module "
- "for you.\n\n "
- "You must already have Directory Opus 5.5 "
- "correctly installed on your harddisk. ")
-
- ;- Set where to do the install to --------------------------------------------
-
- (set #target "DOpus5:")
- (set @default-dest #target)
-
- (if (NOT (exists "DOpus5:" (noreq)))
- (abort "DOpus 5.5 is not correctly installed.\n\n"
- "The \"DOpus5:\" assign could not be found.")
- )
-
- ;- 1) Remove the old hotlist.dopus5 ARexx module -----------------------------
-
- (if (exists "DOpus5:modules/hotlist.dopus5")
- (
- (message "The old \"hotlist.dopus5\" ARexx module "
- "has been detected in \"DOpus5:modules\".\n\n"
- "You cannot use the new hotlist.module "
- "while the old one is still installed so "
- "it will be moved to \"DOpus5:storage/modules\".\n\n"
- "Note that you may have to reload Opus once "
- "the installation is complete for the new "
- "hotlist to become active.")
-
- (rename "DOpus5:modules/hotlist.dopus5"
- "DOpus5:storage/modules/hotlist.dopus5")
-
- (if (exists "DOpus5:modules/hotlist.dopus5.info")
- (rename "DOpus5:modules/hotlist.dopus5.info"
- "DOpus5:storage/modules/hotlist.dopus5.info")
- )
-
- )
- )
-
- (if (exists "DOpus5:system/hotlist.config")
- (if (askbool (prompt "The new hotlist.module uses a different "
- "format for storing its preferences and "
- "cannot read your old hotlist prefs in "
- "\"DOpus5:system/hotlist.config\".\n\n"
- "Do you wish to delete the old file?")
- (help "If you are not sure you can always delete "
- "the file yourself at a later date.")
- (default 1)
- (choices "Delete it" "Don't delete it")
- )
- (delete "DOpus5:system/hotlist.config"
- (optional force)
- (infos)
- )
- )
- )
-
- ;- 2) Install hotlist.module and guide ---------------------------------------
-
- (copylib (prompt "\"hotlist.module\" will be copied to "
- "\"DOpus5:modules\" unless a newer version "
- "already exists.")
- (help @copylib-help)
- (confirm)
- (source "hotlist.module")
- (dest "DOpus5:modules")
- (optional force)
- )
-
- ; The guide has a version string and so can be copied with Copylib.
-
- (copylib (prompt "\"hotlist.module.guide\" will be copied to "
- "\"DOpus5:help\" unless a newer version "
- "already exists.")
- (help @copylib-help)
- (confirm)
- (source "hotlist.module.guide")
- (dest "DOpus5:help")
- (optional force)
- )
-
- ; Only copy the guide's icon if one doesn't already exist so we don't mess-up
- ; the user's snapshot/image/tooltypes.
-
- (if (NOT (exists "DOpus5:help/hotlist.module.guide.info"))
- (copyfiles (prompt "An icon for the AmigaGuide will be copied.")
- (help @copyfiles-help)
- (source "hotlist.module.guide.info")
- (dest "DOpus5:help")
- (noposition)
- (optional force)
- (confirm)
- )
- )
-
- ;- 3) Install optional example button-bank -----------------------------------
-
- (if (askbool (prompt "Would you like to install a button bank "
- "with two example Hotlist buttons which you "
- "can drag'n'drop into your existing setup?")
- (help "Installing it won't hurt, but you don't "
- "have to.")
- (default 1)
- (choices "Yes Please" "No Thanks")
- )
- (
- (copyfiles (source "Hotlist-examples")
- (dest "DOpus5:Buttons")
- (optional force))
- (message "The example button bank has been installed.\n\n"
- "To open it, open a DOpus lister and go to "
- "\"DOpus5:Buttons\" and double-click on the "
- "file called \"Hotlist-examples\".")
- )
- )
-
- ;- 4) Install filetype --------------------------------------------------------
-
- (if (AND (NOT (exists "DOpus5:Filetypes/hotlist.module Hotlist"))
- (NOT (exists "DOpus5:Storage/Filetypes/hotlist.module Hotlist")))
- (
- (set #FTInst (askchoice (prompt "The \"hotlist.module Hotlist\" filetype "
- "will let you double-click on a hotlist "
- "config file to read it into a lister.\n\n"
- "(The installer has determined that it is "
- "not already installed.)")
- (help "Installing it won't hurt, but you don't "
- "have to.\n\n" @askchoice-help)
- (choices "Install and activate."
- "Install to storage."
- "Don't install.")
- )
- )
- (if (= #FTInst 0)
- (copyfiles (source "filetypes/hotlist.module Hotlist")
- (dest "DOpus5:FileTypes")
- (optional force)
- )
- )
- (if (= #FTInst 1)
- (copyfiles (source "filetypes/hotlist.module Hotlist")
- (dest "DOpus5:Storage/FileTypes")
- (optional force)
- )
- )
- )
- )
-
- ;- 5) Install catalogs --------------------------------------------------------
-
- (copyfiles (prompt "Select which languages you would like "
- "catalogs installed for. English is "
- "built-in.")
- (help @copyfiles-help)
- (source "catalogs")
- (dest "DOpus5:catalogs")
- (choices "deutsch")
- (optional force)
- (confirm)
- )
-
- (message "If you are willing to translate hotlist "
- "into another language you can find the "
- "translation files in the archive.")
-
- ;- Misc Messages -------------------------------------------------------------
-
- (message "Please note that if you have installed "
- "MWB_DOpus 8 (which came with Opus 5.5) "
- "you will have three very nice toolbar "
- "icons to use for your hotlist buttons:\n\n"
- "\"Hotlist.small\" (and \"Hotlist.small.info\")\n"
- "\"EdHotlist.small\" (and \"EdHotlist.small.info\")\n"
- "\"EdHotlist2.small\" (and \"EdHotlist2.small.info\")")
-
- ;- All Done ------------------------------------------------------------------
-
- (exit "hotlist.module is now installed.\n\n"
- "Please take the time to read through the "
- "\"hotlist.module.guide\" file in "
- "\"DOpus5:Help\".\n\n"
- "If it doesn't work immediately, you may "
- "need to reboot or restart DOpus5.5 for the "
- "new hotlist to be available."
- (quiet))
-
- ;- That's All Folks ----------------------------------------------------------
-